﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using IHISCETeim.Library;
using System.Data.Common;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using IHISCETeim.Model;
using System.Configuration;

namespace IHISCETeim.DAL
{
    public  class SAuditLevelDAL
    {
        /// <summary>
        /// 获取审核类型下所有审批级别
        /// </summary>
        /// <param name="Type"></param>
        /// <returns></returns>
        public static IDataReader GetByType(string Type)
	    {
		    Database DB = DatabaseFactory.CreateDatabase();

            DbCommand dbCommand = DB.GetStoredProcCommand("SAuditLevel_GetByType", Type);
            return DB.ExecuteReader(dbCommand);
	    }
    }
}
